# import turtle
# turtle.setup(1000, 500)
#蟒蛇绘制
# turtle.penup
# turtle.fd(-250)
# turtle.pendown
# turtle.pensize(25)
# turtle.pencolor("pink")
# turtle.seth(-40)
# for i in range(4):
#     turtle.circle(40, 80)
#     turtle.circle(-40, 80)
# turtle.circle(40, 80 / 2)
# turtle.fd(40)
# turtle.circle(16, 180)
# turtle.fd(40 * 2 / 3)
# turtle.done()

#Z型直线
# turtle.pencolor("red")
# turtle.left(45)
# turtle.fd(150)
# turtle.right(135)
# turtle.fd(300)
# turtle.left(135)
# turtle.fd(150)
# turtle.done()

# from turtle import *
# import turtle
# t = Turtle()
# t.pensize(2)
# turtle.bgcolor("black")
# colors = ["red", "yellow", 'purple', 'blue']
# t._tracer(False)
# for x in range(400):
#     for y in range(200):
#         t.forward(x * y)
#         t.color(colors[x % 4])
#         t.left(91)
# t._tracer(True)
# done()

# import turtle
# turtle.penup()
# turtle.pencolor("blue")
# turtle.forward(-200)
# turtle.pendown()
# turtle.pensize(10)
# turtle.right(45)
# for i in range(4):
#     turtle.circle(40, 100)
#     turtle.circle(-40, 60)
# turtle.circle(40, 80 / 2)
# turtle.fd(30)
# turtle.circle(16, 150)
# turtle.fd(100)
# turtle.done()

import turtle as t  
  
# 设置画布大小  
t.setup(1000, 500)  
# 设置画笔粗细和颜色  
t.pensize(5)  
t.pencolor("red")  
  
# 初始半径和圆的间隔  
radius = 100  
spacing = 200  
  
# 绘制4个圆  
for i in range(4):  
    # 绘制圆  
    t.circle(radius)  
      
    # 移动画笔到下一个圆的起始位置  
    # 首先抬起画笔，避免在移动过程中绘制线条  
    t.penup()  
    # 计算下一个圆的x坐标，保持y坐标不变  
    t.goto(t.xcor() + spacing, t.ycor())  
    # 放下画笔，准备绘制下一个圆  
    t.pendown()  
      
    # 减小半径  
    radius -= 20  
  
# 结束绘图  
t.done()